/*
 *Player class will handle player names and player statistics
 */

#ifndef PLAYER_H
#define PLAYER_H
#include <QString>
#include "player_statistics.h"
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlError>
#include <QtSql/QSqlQuery>

class Player
{
public:
    Player();
    ~Player();
    QString getFirstName();
    void setFirstName(QString inputFirstName);
    QString getMiddleName();
    void setMiddleName(QString inputMiddleName);
    QString getLastName();
    void setLastName(QString inputLastName);
    PlayerStatistics getPlayerStats();
    void setJerseyNumber(int number);
    int getJerseyNumber();
    void addPlayerToDB();
    QString firstName;
    QString middleName;
    QString lastName;
    PlayerStatistics playerStats;
    int jerseyNumber;
    void setId(int);
    int getId();
    private:
    int player_id;

};

#endif // PLAYER_H
